package cn.itsource.mybatis;

import java.io.IOException;
import java.util.List;

public interface IUserDao {
    //根据ID查询内容
    User getOne(Long id) throws IOException;

    //查询所有内容
    List<User> getAll() throws IOException;

    //新增
    void save(User user) throws IOException;

    //修改
    void update (User user) throws IOException;

    //删除
    void delete(Long id) throws  IOException;
}
